package com.ruoyi.service.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 手机验证码表对象 service_phonecode
 * 
 * @author ZDL
 * @date 2025-03-17
 */
public class ServicePhonecode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 手机验证码主键ID */
    private Long phonecodeId;

    /** 手机验证码 */
    @Excel(name = "手机验证码")
    private String phonecodeCode;

    /** 时间 用于判断是否过期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间 用于判断是否过期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date phonecodeTime;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long phonecodeUserid;

    /** 被服务ID */
    @Excel(name = "被服务ID")
    private Long phonecodeServedid;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phonecodePhone;

    public void setPhonecodeId(Long phonecodeId) 
    {
        this.phonecodeId = phonecodeId;
    }

    public Long getPhonecodeId() 
    {
        return phonecodeId;
    }
    public void setPhonecodeCode(String phonecodeCode) 
    {
        this.phonecodeCode = phonecodeCode;
    }

    public String getPhonecodeCode() 
    {
        return phonecodeCode;
    }
    public void setPhonecodeTime(Date phonecodeTime) 
    {
        this.phonecodeTime = phonecodeTime;
    }

    public Date getPhonecodeTime() 
    {
        return phonecodeTime;
    }
    public void setPhonecodeUserid(Long phonecodeUserid) 
    {
        this.phonecodeUserid = phonecodeUserid;
    }

    public Long getPhonecodeUserid() 
    {
        return phonecodeUserid;
    }
    public void setPhonecodeServedid(Long phonecodeServedid) 
    {
        this.phonecodeServedid = phonecodeServedid;
    }

    public Long getPhonecodeServedid() 
    {
        return phonecodeServedid;
    }
    public void setPhonecodePhone(String phonecodePhone) 
    {
        this.phonecodePhone = phonecodePhone;
    }

    public String getPhonecodePhone() 
    {
        return phonecodePhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("phonecodeId", getPhonecodeId())
            .append("phonecodeCode", getPhonecodeCode())
            .append("phonecodeTime", getPhonecodeTime())
            .append("phonecodeUserid", getPhonecodeUserid())
            .append("phonecodeServedid", getPhonecodeServedid())
            .append("phonecodePhone", getPhonecodePhone())
            .toString();
    }
}
